package com.zrrd.learn.chapter08面向对象.pattern.proxy;

import lombok.Data;

/**
 * RealImage
 *
 * @author wrn
 * @version 1.0
 * @date 2023/8/4 10:44
 */
@Data
public class Reallmage implements Image {

    private String fileName;

    public Reallmage() {

    }

    @Override
    public void display() {
        System.out.println(this.getFileName() + "显示的照片");
    }

    public void loadFromDisk() {
        System.out.println(this.getFileName() + "在磁盘上上传的照片");
    }


}
